package com.net;

public class RunSrmsUpdate 
{

	public static void main(String[] args) 
	{
		System.out.println("read input ");
		
		String s = readInput();
		
		System.out.println("string is " +s);

	}

	private static String readInput() 
	{
		StringBuffer buf = new StringBuffer();
		byte ch = 0;
		
		try 
		  {
			do
			{
				ch = (byte) System.in.read();
				System.out.println(ch);
				
				if(ch>= 20)
				{
					char character = (char) ch;
					buf.append(character);
				}
				else
				{
					ch = -1;
				}
			}
			while(ch>-1);
				
		  } 
		
		catch (Exception e) 
		{
			
		}
		
		return buf.toString();
		
		
	}

}
